import request from '@/utils/request'

// 查询传感器配置列表
export function listSensorSettings(query) {
  return request({
    url: '/biz/settings/list',
    method: 'get',
    params: query
  })
}

// 查询传感器配置详细
export function getSensorSettings(deviceId) {
  return request({
    url: '/biz/settings/' + deviceId,
    method: 'get'
  })
}

// 新增传感器配置
export function addSensorSettings(data) {
  return request({
    url: '/biz/settings',
    method: 'post',
    data: data
  })
}

// 修改传感器配置
export function updateSensorSettings(data) {
  return request({
    url: '/biz/settings',
    method: 'put',
    data: data
  })
}

// 删除传感器配置
export function delSensorSettings(id) {
  return request({
    url: '/biz/settings/' + id,
    method: 'delete'
  })
}

// 导出传感器配置
export function exportSensorSettings(query) {
  return request({
    url: '/biz/settings/export',
    method: 'get',
    params: query
  })
}